<?php

declare(strict_types=1);

namespace app\admin\controller\dashboard;


use think\response\Json;
use app\admin\controller\Controller;

class Dashboard extends Controller
{
    protected $service = null;

    public function initialize()
    {
        parent::initialize();
        $this->service = new \app\admin\service\dashboard\DashboardService();
    }

    public function header()
    {
        return success($this->service->header());
    }
    public function center(): Json
    {
        return success($this->service->center(request()->param()));
    }
    public function notice()
    {
        return success($this->service->notice());
    }
    public function user()
    {
        return success($this->service->user());
    }
    public function activity()
    {
        return success($this->service->activity());
    }
}
